import { Button } from "antd";
import { useNavigate } from "react-router-dom";

const NotFound = () => {
  const navigate = useNavigate();
  return (
    <div style={{textAlign: 'center', marginTop: 100, fontSize: 24}}>
      404 页面不存在
      <div style={{marginTop: 32}}>
        <Button type="primary" onClick={() => navigate("/")}>
          返回首页
        </Button>
      </div>
    </div>
  );
};

export default NotFound;